
const idNumber = (id) => {
	if(!id) return '--'

	let starLength = id.length - 8
	let starStr = ''
	for (let i = 0; i < starLength; i++) {
		starStr = starStr + '*'
	}
	
	let str = id.substr(0,4) + starStr + id.substr(-4)
	return str
}

export default idNumber
